package com.yuan.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/interceptorController")
public class InterceptorController {


    @GetMapping("/testInterceptor")
    public String testInterceptor() {
        System.out.println("==>2.Myinterceprot111->  拦截器拦截的Controller 执行了！！！！");

        return "testInterceptor";
    }

}
